﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fApp
{
    public partial class fAppMain : fAppIntarface
    {
        public void invoke(Delegate func)
        {
            func.DynamicInvoke();
        }
        public void endApp(string eap)
        {
            if (this.appsNameList.IndexOf(eap) == -1)
            {
                fApp.Forms.fMessageBox.Show("ERROR 0001: アプリケーションの終了に失敗しました。", "OK");
            }
            else
            {
                int index = this.appsNameList.IndexOf(eap);
                appList.Items[index].Text = apps[index].inst.Name;
                apps[index].inst.Dispose();

                runNow.Remove(index);

            }
        }
    }
}
